import java.util.Scanner;
public class sanjiaoxing {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入三角形三边的长度");
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        try{
            sanjiao(a,b,c);}
        catch(IllegalArgumentException e){
            System.out.println(e.getMessage());
        }
    }
    static void sanjiao(int a,int b,int c){//判断是否可以构成三角形
        if(a+b>c&&a+c>b&&b+c>a){
            System.out.println("三角形的三边长为："+a+" "+b+" "+c);
        }else{
            throw new IllegalArgumentException(a+" "+b+" "+c+"不能构成三角形");
        }
    }
}